package view;

// 产品类(public类,且要有set,get方法)
public class Product {
	private String name;
	private double price;
	private int amount;
	private Boolean fresh;
	
	public Product(String name, double price, int amount, Boolean fresh) {
		this.name = name;
		this.price = price;
		this.amount = amount;
		this.fresh = fresh;
	}

	public Product() {
		
	}
	
	// 访问器与修改器
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public double getPrice() {
		return price;
	}

	public void setPrice(double price) {
		this.price = price;
	}

	public int getAmount() {
		return amount;
	}

	public void setAmount(int amount) {
		this.amount = amount;
	}
	
	public boolean isFresh() {
		return fresh;
	}
	
	public void setFresh(Boolean fresh) {
		this.fresh = fresh;
	}
}